package com.xiaobai.dao;

import com.xiaobai.pojo.HealthLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

@Mapper
@Component
public interface HealthLogDao {

    int deleteByPrimaryKey(Integer id);

    int insert(HealthLog record);

    int insertSelective(HealthLog record);

    HealthLog selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(HealthLog record);

    int updateByPrimaryKey(HealthLog record);

    List<HealthLog> limitPage(@Param("studentId") String studentId,
                              @Param("limitStart") Integer limitStart,
                              @Param("limitEnd") Integer limitEnd);

    List<HealthLog> getFailListByToday(@Param("createTime")Date createTime);

}